package com.cash.lemoloan.statisticlib;

import android.text.TextUtils;

import java.io.File;

import com.cash.lemoloan.statisticlib.Utils.AppInfoUtils;
import com.cash.lemoloan.statisticlib.Utils.FileUtil;

public class StatisticContant {
    public static final String DEFAULT_CHANNEL = "1000009999";

    public static String latitude = "";
    public static String longitude = "";

    public static String NEW_CASHUSER_GID = "";

    public static int NEW_CASHMAX_UPLOAD = 200;
    public static long NEW_CASHMAX_INTERVAL = 3 * 24 * 60 * 60 * 1000;
    public static long NEW_CASHMAX_RANDOM_PIC_INTERVAL = 7 * 24 * 60 * 60 * 1000;

    public static final String SYSTEM = "SYSTEM";

    public static final String NON_SYSTEM = "NON-SYSTEM";

    public static final String CON01 = "CON01";

    public static final String APP01 = "APP01";

    public static final String DEV01 = "DEV01";

    public static final String WIFI01 = "WIFI01";

    public static final String CALLLOG01 = "CALLLOG01";

    public static final String NEW_CASHUPLOAD_SMS_TIME = "NEW_CASHUPLOAD_SMS_TIME";
    public static final String NEW_CASHUPLOAD_CALL_LOG_TIME = "NEW_CASHUPLOAD_CALL_LOG_TIME";
    public static final String NEW_CASHUPLOAD_CON01_TIME = "NEW_CASHUPLOAD_CON01_TIME";
    public static final String NEW_CASHUPLOAD_APP01_TIME = "NEW_CASHUPLOAD_APP01_TIME";
    public static final String NEW_CASHUPLOAD_PIC01_TIME = "NEW_CASHUPLOAD_PIC01_TIME";
    public static final String NEW_CASHUPLOAD_CALENDAR_TIME = "NEW_CASHUPLOAD_CAL01_TIME";
    public static final String NEW_CASHUPLOAD_DEV01_TIME = "NEW_CASHUPLOAD_DEV01_TIME";
    public static final String NEW_CASHUPLOAD_WIFI01_TIME = "NEW_CASHUPLOAD_WIFI01_TIME";

    public static final String NEW_CASHUPLOAD_CON01_FLAG = "NEW_CASHUPLOAD_CON01_FLAG";
    public static final String NEW_CASHUPLOAD_PIC01_FLAG = "NEW_CASHUPLOAD_PIC01_FLAG";
    public static final String NEW_CASHUPLOAD_CALEAN01_FLAG = "NEW_CASHUPLOAD_CALEAN01_FLAG";

    public static final String NEW_CASHUPLOAD_RANDOM_PIC = "NEW_CASHUPLOAD_RANDOM_PIC";


    public static final String NEW_CASHWIFI_CLOSED_UNABLE_ADDR = "00:00:00:00:00:01";
    public static final String NEW_CASHWIFI_OPENED_UNABLE_MAC_ADDR = "00:00:00:00:00:02";
    public static final String NEW_CASHWIFI_DEFAULT_MAC_ADDR = "02:00:00:00:00:00";


    public static String LATITUDE_FLAG = "latitude_flag";
    public static String LONGITUDE_FLAG = "longitude_flag";

    public static String IMAGE_TYPE = "imageType";
    public static String GET_IMAGE_TYPE = "";

    public static final String PHOTO_PATH = FileUtil.getCachePath() + File.separator;

    public static final String IS_GET_CAMERA_PER = "IS_GET_CAMERA_PER";
    public static final String IS_GET_CONTACTS_PER = "IS_GET_CONTACTS_PER";
    public static final String IS_GET_WRITE_EXTERNAL_STORAGE_PER = "IS_GET_WRITE_EXTERNAL_STORAGE_PER";
    public static final String IS_GET_CALL_LOG_PER = "IS_GET_CALL_LOG_PER";

    /**
     * 调起系统通讯录code
     */
    public static final int START_CONTACTS = 1001;
    /**
     * 调起拍照code
     */
    public static final int START_CAMERA = 1004;
    /**
     * START_FILECHOOSER_RESULTCODE
     */
    public static final int START_FILECHOOSER_RESULTCODE= 1009;
    /**
     * START_FILECHOOSER_RESULTCODE
     */
    public static final int START_CAMERACHOOSER_RESULTCODE= 1100;
    /**
     * 唤起相册
     */
    public static final int START_ALBUM_RESULTCODE= 1111;

    public static final String PERSSION_FAIL = "perssion_fail";  //缺少权限
    public static final String LUNCH_CAMERA_FAIL = "lunch_camera_fail"; //有权限，拉起相机失败

    public static final String CHANNEL_ID_STRING_LOC = "LocChannel";

    public static String GOOGLEID = "";
    public static String GOOGLEID_KEY = "googleId_key";

//    public static String INDEX_URL = "https://test.pondocash.top:8990/#/?" + AppInfoUtils.getVersionCode();
//    public static String STATISTIC_URL = "https://test.pondocash.top:8070/huron/app/collect";
//    public static String GET_CONFIG = "https://test.pondocash.top:8070/huron/v2/init";

    public static String INDEX_URL = "https://biz.vaymevn.com:9690/#/?" + AppInfoUtils.getVersionCode();
//    本地测试环境
//    public static String INDEX_URL = "http://10.247.1.173:8080/#/?" + AppInfoUtils.getVersionCode();
//    public static String STATISTIC_URL = "https://www.lemonloan.top/lemon/biz/v2/app/collect/cash/load";
//    public static String GET_CONFIG = "https://www.lemonloan.top/lemon/biz/v2/init/cash/iinn";

    public static String STATISTIC_URL = "https://biz.vaymevn.com:9690/vay/biz/v2/app/collect";
    public static String GET_CONFIG = "https://biz.vaymevn.com:9690/vay/biz/v2/init";
    public static String CONFIG_JSON = "https://phl-domain.oss-cn-hongkong.aliyuncs.com/vayme.txt";
    public static String FACE_DETECT = "https://biz.vaymevn.com:9690/vay/biz/app/facial/capture";
    public static String DOMAIN_NAME = "";

    public static String getFaceDetect() {
        return FACE_DETECT;
    }

    public static void setFaceDetect(String faceDetect) {
        FACE_DETECT = faceDetect;
    }

    public static String getIndexUrl() {
        return INDEX_URL;
    }

    public static void setIndexUrl(String domainName) {
        if (!TextUtils.isEmpty(domainName)) {
            INDEX_URL = domainName + AppInfoUtils.getVersionCode();
        }
    }


    public static String getStatisticUrl() {
        return STATISTIC_URL;
    }

    public static void setStatisticUrl(String statisticUrl) {
        STATISTIC_URL = statisticUrl;
    }

    public static String getGetConfig() {
        return GET_CONFIG;
    }

    public static void setGetConfig(String getConfig) {
        GET_CONFIG = getConfig;
    }

    public static String getDomainName() {
        return DOMAIN_NAME;
    }

    public static void setDomainName(String domainName) {
        DOMAIN_NAME = domainName;
    }
}